﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="contacto.aspx.cs" Inherits="contacto" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Contacto</title>
    <link rel="stylesheet" type="text/css" href="css/style.css" />
</head>
<body>
    <div id="header">
        <ul id="menu">
            <li><a href="viagens.aspx">Consultar Viagens Marcadas</a></li>
            <li><a href="contacto.aspx">Contacto</a></li>
            <% if (Session["nome"]!=null) {%><li><a href="logout.aspx">Sair</a></li><% } %>
        </ul>
    </div>
    <div id="wrapper">
        <div id="content">
         <h2>Contacto</h2><br />
            <form id="form1" runat="server">
            <div id="err" runat="server" style="color:red"></div><br /><br />
            <asp:Label ID="lNome" runat="server" Text="Nome:"></asp:Label>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ErrorMessage="Indique o nome!" ControlToValidate="txtNome" 
                ForeColor="#FF6600"></asp:RequiredFieldValidator>
            <br />
            <asp:TextBox ID="txtNome" runat="server" Style="width: 400px;"></asp:TextBox>
            <br /><br />
            <asp:Label ID="lDescricao" runat="server" Text="Mensagem:"></asp:Label>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                ErrorMessage="Digite a mensagem!" ControlToValidate="txtDescricao" 
                ForeColor="#FF6600"></asp:RequiredFieldValidator>
            <br />
            <asp:TextBox ID="txtDescricao" runat="server" Style="width: 400px;" Rows="10" mode="multiline"
                TextMode="MultiLine"></asp:TextBox>
            <br />
            <br />
            <asp:Label ID="lTelefone" runat="server" Text="Telefone:"></asp:Label>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                ErrorMessage="Indique o telefone" ControlToValidate="txtTelefone" 
                ForeColor="#FF6600"></asp:RequiredFieldValidator>
            <br />
            <asp:TextBox ID="txtTelefone" runat="server" Style="width: 200px;"></asp:TextBox>
            <br /><br />
            <asp:Label ID="lAgencia" runat="server" Text="Seleccione a agencia à contactar:"></asp:Label>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                ErrorMessage="Indique a agência!" ControlToValidate="dAgencia" 
                ForeColor="#FF6600"></asp:RequiredFieldValidator>
            <br />
            <asp:DropDownList ID="dAgencia" runat="server" DataSourceID="Agencias" 
                DataTextField="nome" DataValueField="IDAgencia">
            </asp:DropDownList>
            <asp:ObjectDataSource ID="Agencias" runat="server" SelectMethod="list" 
                TypeName="WCFAgencia.WCFAgenciaClient"></asp:ObjectDataSource>
            <br />
            <asp:Button ID="Button1" runat="server" Text="Enviar" class="input-button" 
                onclick="Button1_Click" />
            </form>


        </div>
    </div>
    <div id="footer">
        <div>
            <a href="viagens.aspx">Consultar Viagens Marcadas</a> | <a href="contacto.aspx">Contacto</a>
        </div>
    </div>
</body>
</html>
